<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属书籍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-book_id" data-rule="required" data-source="book/index" class="form-control selectpage" name="row[book_id]" type="text" value="{$row.book_id|htmlentities}">-->
            <input type="text" class="form-control" disabled value="{$row.book.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content_id" data-rule="required" data-source="content/index" class="form-control selectpage" name="row[content_id]" type="text" value="{$row.content_id|htmlentities}">
        </div>
    </div>-->
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Is_vip')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-is_vip" class="form-control" name="row[is_vip]" type="number" value="{$row.is_vip|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否收费')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-is_free" class="form-control" name="row[is_free]" type="number" value="{$row.is_free|htmlentities}">-->
            {:build_radios('row[is_free]', ['0'=>'免费', '1'=>'收费'],$row.is_free)}
        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Size')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-size" class="form-control" name="row[size]" type="number" value="{$row.size|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->
    <input type="hidden" name="row[content_id]" value="{$row.content.id}">
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Index')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-index" class="form-control" name="row[index]" type="number" value="{$row.index|htmlentities}">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('章节内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-update" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update]" type="text" value="{$row.update}">-->
            <textarea id="c-notes" class="form-control editor form-control" rows="20" name="row[content]" cols="50">{$row.content.content|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update]" type="text" value="{$row.update}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
